package com.lineage.server.serverpackets;

import com.lineage.server.model.Instance.L1PcInstance;

public final class S_AllChannelsChat extends ServerBasePacket {
  private byte[] _byte;
  
  public S_AllChannelsChat(L1PcInstance pc, String chat, int color) {
    this._byte = null;
    writeC(176);
    writeC(18);
    writeH(color);
  }
  
  public S_AllChannelsChat(String chat, int color) {
    this._byte = null;
    writeC(176);
    writeC(18);
    writeS(chat);
    writeH(color);
  }
  
  public String getType() {
    return "[S] " + getClass().getSimpleName();
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
}
